<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>SelectDemo</title>
</head>
<body>
    <form action="#" method="get" autocomplete="off">
        所在城市:<select name ="city">
            <option>---请选择城市---</option>
            <optgroup label="省级市">
                <option>长沙</option>
                <option>武汉</option>
            </optgroup>
        <optgroup label="直辖市">
            <option>北京</option>
            <option>上海</option>
        </optgroup>
        </select>
        <button type="submit">提交</button>
        <button type="reset">重置</button>
    </form>
</body>
</html>